<?php
/**
 * Created by PhpStorm.
 * User: alex
 * Date: 2018/8/30
 * Time: 下午9:30
 */

namespace app\api\validate;

class DemoValidate extends BaseValidate
{
    // 验证规则
    protected $rule = [
        'id' => 'require|number',
    ];


    // 验证失败信息
    protected $message = [
        'id' => 'id 必须为数字'
    ];
}